<include file="Public:header" />
<div class="title"><span>活动列表</span></div>
	<div class="list">
<table>
	<tr>
    	<th>编号</th>
        <th>商铺</th>
        <th>打折简讯</th>
        <th>活动时间</th>
        <th>操作</th>
    </tr>
    <foreach name="dis" item="d" >
    <tr style="<if condition="$d['etime'] elt time()">color: red;</if>">
    	<td>{$d.id}</td>
    	<td>{$d.m_name} - {$d.f_sain} {$d.f_name} - {$d.b_name} - {$d.g_name}</td>
    	<td>{$d.intr}</td>
    	<td>{$d.stime|date="Y-m-d",###} - {$d.etime|date="Y-m-d",###}</td>
    	<td><a href="{:U('/Dis/add')}/market/{$d.mid}<if condition="$d['bid']">/brand/{$d.bid}</if><if condition="$d['fid']">/floor/{$d.fid}</if><if condition="$d['gid']">/good/{$d.gid}</if>">修改</a></td>
    </tr>
    </foreach>
</table>
{$page}
</div>
<include file="Public:footer" />